home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / msoftapp.zip / CIRCLVW.H < prev    next >
C/C++ Source or Header  |  1993-06-01  |  1KB  |  46 lines

  1. // circlvw.h : interface of the CGraphicView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CGraphicView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CGraphicView();
  9.     DECLARE_DYNCREATE(CGraphicView)
  10.  
  11. // Attributes
  12. public:
  13.     CCircleDoc* GetDocument();
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Implementation
  19. public:
  20.     virtual ~CGraphicView();
  21.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  22. #ifdef _DEBUG
  23.     virtual void AssertValid() const;
  24.     virtual void Dump(CDumpContext& dc) const;
  25. #endif
  26.  
  27.     // Printing support
  28. protected:
  29.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  30.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  31.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  32.  
  33. // Generated message map functions
  34. protected:
  35.     //{{AFX_MSG(CGraphicView)
  36.     //}}AFX_MSG
  37.     DECLARE_MESSAGE_MAP()
  38. };
  39.  
  40. #ifndef _DEBUG    // debug version in circlvw.cpp
  41. inline CCircleDoc* CGraphicView::GetDocument()
  42.    { return (CCircleDoc*) m_pDocument; }
  43. #endif
  44.  
  45. /////////////////////////////////////////////////////////////////////////////
  46.